package com.nnnu.orange.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.time.LocalDate;

@Data
public class ReservationsQueryDto {
    private LocalDate startTime, endTime;
    private Integer userId, bookId, pageNum = 1, pageSize = Integer.MAX_VALUE;
    @Range(min = 0, max = 4, message = "状态只能是 0 到 4 的数字")
    private Integer status;
}
